package com.yxq.mdt.app.modules.socialcontact.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.glide.GlideHelper;
import com.yxq.mdt.app.modules.socialcontact.bean.ByPageListBean;
import com.yxq.mdt.app.modules.socialcontact.bean.MainSocialCircleBean;

import java.util.List;

public class MainSocialCircleMoreAdapter extends BaseQuickAdapter<ByPageListBean.ListBean, BaseViewHolder> {
    public MainSocialCircleMoreAdapter(int layoutResId, @Nullable List<ByPageListBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ByPageListBean.ListBean item) {
        GlideHelper.setLoadRoundImage(mContext, item.getLogo(),R.color.gray, helper.getView(R.id.circle_list_image));
        helper.setText(R.id.circle_list_name, item.getGroupname());
        helper.setText(R.id.circle_list_introduce, item.getDescription());
        helper.setText(R.id.circle_list_update, "动态:" + item.getDynamicNum());
    }
}
